<%@page contentType="text/html" import="java.text.*,java.util.*" %>

<!--
	Name		: A cutdown version of the Download Reports page for the Industry Watch trial user.
	Developed By: Sandip Bhattacharya (sandipkb@yahoo.com)
	Version 	: 1.0
-->
<%
	// let the user access the system only if he is logged in.
	if(session.getAttribute("IWusername") == null){
		response.sendRedirect("IndustryWatchLogin.jsp");
		return;
	}

	// Get the current month and year.
 	SimpleDateFormat fmt = new SimpleDateFormat("MMMM yyyy");
 	String monthYear = fmt.format(new Date());
%>

<HTML>
	<HEAD>
	    <TITLE>Download full reports</TITLE>

		<!-- begin Prototype import -->
		<script type='text/javascript' src='mr_scripts/prototype.js'></script>
		<!-- ends Prototype import -->

		<!-- begin imports for sorting of the table -->
        <script type="text/javascript" src="mr_scripts/sorttable.js"></script>
        <style>
			.sortablecolumn {
				cursor: pointer;
				cursor: hand;
			}
        </style>
		<!-- ends imports for sorting of the table -->

		<script>
	    	function downloadReport(uuid){
	    		document.location = "industryWatch?mode=pdfReportDownloadForTrialUser&reportId=" + uuid;
	    	}

			function logoutIWUser(frm){
				frm.mode.value	= "logoutFromIndustryWatch";
				frm.action		= "industryWatch";
				frm.target		= "_top";
				frm.submit();
			}
		</script>
	    <style type="text/css">
	    	th{
	    		border-style: none none solid none;
				border-width:1px;
	    	}
	    </style>
		<link href="css/master.css" rel="stylesheet" type="text/css">
	</HEAD>
	<BODY>
		<div align="center">
			<table width="800px" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td height="20" colspan="2" class="topnav">
						<ul>
							<li><a style="font-size:9px" href="industryWatch?mode=logoutFromIndustryWatch">:: Log Out&nbsp;&nbsp;&nbsp;</a></li>
							<li><a style="font-size:9px" href='iwMainPageDemoVersion.jsp'>: Return to Industry Watch</a></li>
						</ul>
					</td>
				</tr>
				<tr>
					<td height="120" colspan="2" background="mr_images/IndustryWatchHeader.jpg">&nbsp;</td>
				</tr>
			</table>
		</div>
		<table width="800" align="center">
			<tr>
				<td>
					<p>&nbsp;<p>
					The reports below are available as free downloads to demonstrate the detail of the analysis available on any sector.
					If you try a download you will see they contain the company figures and rankings for up to 600 top companies per sector.
					<p>You can order the eBook version of any report you wish as a customer of Industry Watch. eBooks are chargeable at the reduced rate of &pound;111.63 including VAT per title selected. The same eBook bought from the Merlin Scott Associates website would cost &pound;170.38. When you subscribe to the Industry Watch Service you can decide to pay as you go for the eBooks. A further saving can be made by subscribing for a batch of 10 reports initially which will be worthwhile for heavy users of this detailed sector analysis.				</td>
			</tr>
			<tr>
				<td>
					<p>&nbsp;<p>
					<table class="sortable" width='100%' cellspacing='0' cellpadding = '5' style="border-style: solid;border-width: 1px;font:11px verdana,arial, sans-serif ;">
						<thead>
							<tr>
								<th class="sortablecolumn">Report Title</th>
								<th style="text-align:right" class="sorttable_nosort">Size</th>
								<th class="sortablecolumn">Edition</th>
								<th class="sorttable_nosort">Status</th>
							</tr>
						</thead>
						<tbody>
							<tr style='color:#038243;cursor:pointer' onclick='downloadReport("379")'>
								<td>Car Dealers (Ford)</td>
								<td style='text-align: right'>15 MB</td>
								<td><%=monthYear%></td>
								<td>Click to download</td>
							</tr>
							<tr style='color:#038243;cursor:pointer' onclick='downloadReport("301")'>
								<td>Car Dealers (Nissan)</td>
								<td style='text-align: right'>15 MB</td>
								<td><%=monthYear%></td>
								<td>Click to download</td>
							</tr>
							<tr style='color:#038243;cursor:pointer' onclick='downloadReport("682")'>
								<td>Car Dealers (Volkswagen)</td>
								<td style='text-align: right'>15 MB</td>
								<td><%=monthYear%></td>
								<td>Click to download</td>
							</tr>
						</tbody>
					</table>
					<br>Note that report files are large PDF files and may take some minutes to successfully download.
					<p><span style='color:#038243;cursor:pointer' onclick="document.location='iwMainPageDemoVersion.jsp'">Return to Industry Watch</span>
				</td>
			</tr>

		</table>

		<script>
			sorttable.init();
		</script>

		<!-- Start of StatCounter Code -->
		<script type="text/javascript">
		var sc_project=4912795;
		var sc_invisible=1;
		var sc_partition=57;
		var sc_click_stat=1;
		var sc_security="c938bcbc";
		var sc_remove_link=1;
		</script>

		<script type="text/javascript"
		src="http://www.statcounter.com/counter/counter.js"></script><noscript><div
		class="statcounter"><img class="statcounter"
		src="http://c.statcounter.com/4912795/0/c938bcbc/1/"
		alt="iweb hit counter" ></div></noscript>
		<!-- End of StatCounter Code -->
	</BODY>
</HTML>